This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: *Calling all LS Gurus* - Code verification required: transfer & deletion of HUGE view collection ~Naomi Deskroterakol 11.Dec.03 03:46 PM a Web browser Domino Designer 6.0.2All Platforms
Erik's tip about moving the remove call outside the loop will save you considerable time. The only other possible shortcut at that point would be to try to eliminate (or at least speed up) the CopyToDatabase call. If the database this is running on has transaction logging enabled, there's not much you can do to speed that up.
However, you might be able to avoid the CopyToDatabase call altogether. If you're absolutely fanatical about maximizing your tweaks, then you might want to try a little experiment. Pipeline a DXLExporter from the log database to a DXLImporter to your agent database. No promises, but it *might* be faster. The importer always seems to generate docs for me faster than an LS .Save call (which CopyToDatabase is shorthand for)